package com.ccjk.beusoft.hot.plugin

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.KeyEvent
import android.view.Menu
import android.view.MenuItem
import android.view.MotionEvent
import android.view.WindowManager

/**
 * Created by CCJK on 2017/12/2.
 */

interface PluginActivityInterface :Bind{
    fun onCreate(savedInstanceState: Bundle?)
    fun onStart()
    fun onRestart()
    fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
    fun onResume()
    fun onPause()
    fun onStop()
    fun onDestroy()
    fun onSaveInstanceState(outState: Bundle?)
    fun onNewIntent(intent: Intent?)
    fun onRestoreInstanceState(savedInstanceState: Bundle?)
    fun onTouchEvent(event: MotionEvent?): Boolean
    fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean
    fun onWindowAttributesChanged(params: WindowManager.LayoutParams?)
    fun onWindowFocusChanged(hasFocus: Boolean)
    fun onBackPressed()
    fun onCreateOptionsMenu(menu: Menu?): Boolean
    fun onOptionsItemSelected(item: MenuItem?): Boolean
}
